package com.zhima.panel;

import javax.swing.*;
import java.awt.*;

public class InFileHeadPanel extends JPanel {

    public InFileHeadPanel(
            JButton addRandomInDataConfigurationJButton,
            JButton addNewLineConfigurationJButton,
            JButton selectInFileOutputBaseDirJButton,
            JLabel selectedInFileOutputJLabel,
            JTextField numberOfConfigurationJTextFiled,
            JButton generateInDataJButton) {
        setLayout(new GridLayout(3, 1));
        JPanel vP = new JPanel(new GridLayout(4, 1));
        vP.setPreferredSize(new Dimension(400, 420));
        JPanel fR = new JPanel();
        fR.add(new JLabel("生成输入数据"));
        JPanel sR = new JPanel();
        sR.add(addRandomInDataConfigurationJButton);
        sR.add(addNewLineConfigurationJButton);
        vP.add(fR);
        vP.add(sR);
        JPanel tR = new JPanel();
        tR.add(selectInFileOutputBaseDirJButton);
        JPanel jP = new JPanel();
        jP.add(new JLabel("当前in文件输出路径："));
        vP.add(tR);
        vP.add(jP);
        add(vP);

        JPanel vR = new JPanel();
        vR.add(selectedInFileOutputJLabel);
        add(vR);
        JPanel oR = new JPanel();
        oR.add(new JLabel("请输入您要生成几个数据文件："));
        oR.add(numberOfConfigurationJTextFiled);
        oR.add(generateInDataJButton);
        add(oR);
    }
}
